/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * ZodiacEdgeFilterThresholds
 */
@JsonPropertyOrder({
  ZodiacEdgeFilterThresholds.JSON_PROPERTY_THRESHOLD_FILTER,
  ZodiacEdgeFilterThresholds.JSON_PROPERTY_MIN_LOCAL_CANDIDATES,
  ZodiacEdgeFilterThresholds.JSON_PROPERTY_MIN_LOCAL_CONNECTIONS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class ZodiacEdgeFilterThresholds {
  public static final String JSON_PROPERTY_THRESHOLD_FILTER = "thresholdFilter";
  @jakarta.annotation.Nullable
  private Double thresholdFilter;

  public static final String JSON_PROPERTY_MIN_LOCAL_CANDIDATES = "minLocalCandidates";
  @jakarta.annotation.Nullable
  private Integer minLocalCandidates;

  public static final String JSON_PROPERTY_MIN_LOCAL_CONNECTIONS = "minLocalConnections";
  @jakarta.annotation.Nullable
  private Integer minLocalConnections;

  public ZodiacEdgeFilterThresholds() {
  }

  public ZodiacEdgeFilterThresholds thresholdFilter(@jakarta.annotation.Nullable Double thresholdFilter) {
    
    this.thresholdFilter = thresholdFilter;
    return this;
  }

  /**
   * Get thresholdFilter
   * @return thresholdFilter
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_THRESHOLD_FILTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Double getThresholdFilter() {
    return thresholdFilter;
  }


  @JsonProperty(JSON_PROPERTY_THRESHOLD_FILTER)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setThresholdFilter(@jakarta.annotation.Nullable Double thresholdFilter) {
    this.thresholdFilter = thresholdFilter;
  }

  public ZodiacEdgeFilterThresholds minLocalCandidates(@jakarta.annotation.Nullable Integer minLocalCandidates) {
    
    this.minLocalCandidates = minLocalCandidates;
    return this;
  }

  /**
   * Get minLocalCandidates
   * @return minLocalCandidates
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_MIN_LOCAL_CANDIDATES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getMinLocalCandidates() {
    return minLocalCandidates;
  }


  @JsonProperty(JSON_PROPERTY_MIN_LOCAL_CANDIDATES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMinLocalCandidates(@jakarta.annotation.Nullable Integer minLocalCandidates) {
    this.minLocalCandidates = minLocalCandidates;
  }

  public ZodiacEdgeFilterThresholds minLocalConnections(@jakarta.annotation.Nullable Integer minLocalConnections) {
    
    this.minLocalConnections = minLocalConnections;
    return this;
  }

  /**
   * Get minLocalConnections
   * @return minLocalConnections
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_MIN_LOCAL_CONNECTIONS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getMinLocalConnections() {
    return minLocalConnections;
  }


  @JsonProperty(JSON_PROPERTY_MIN_LOCAL_CONNECTIONS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMinLocalConnections(@jakarta.annotation.Nullable Integer minLocalConnections) {
    this.minLocalConnections = minLocalConnections;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ZodiacEdgeFilterThresholds zodiacEdgeFilterThresholds = (ZodiacEdgeFilterThresholds) o;
    return Objects.equals(this.thresholdFilter, zodiacEdgeFilterThresholds.thresholdFilter) &&
        Objects.equals(this.minLocalCandidates, zodiacEdgeFilterThresholds.minLocalCandidates) &&
        Objects.equals(this.minLocalConnections, zodiacEdgeFilterThresholds.minLocalConnections);
  }

  @Override
  public int hashCode() {
    return Objects.hash(thresholdFilter, minLocalCandidates, minLocalConnections);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ZodiacEdgeFilterThresholds {\n");
    sb.append("    thresholdFilter: ").append(toIndentedString(thresholdFilter)).append("\n");
    sb.append("    minLocalCandidates: ").append(toIndentedString(minLocalCandidates)).append("\n");
    sb.append("    minLocalConnections: ").append(toIndentedString(minLocalConnections)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

